# 用于开发环境下测试网络下各服务部署情况
FROM alpine:latest

ENV GOPROXY=https://goproxy.cn,direct
# 安装grpcurl、curl和bash
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories && \
    # 安装基础依赖
    apk add --no-cache curl bash go git && \
    # 编译安装grpcurl
    go install github.com/fullstorydev/grpcurl/cmd/grpcurl@latest && \
    mv /root/go/bin/grpcurl /usr/local/bin/ && \
    # 清理编译环境
    apk del go git && \
    rm -rf /root/go

# 可选：设置默认shell为bash（非必须）
SHELL ["/bin/bash", "-c"]